package com.yonyou.crm.sys.modules.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

import com.yonyou.crm.common.biz.service.BaseBizServiceImpl;
import com.yonyou.crm.sys.modules.entity.CurrencyVO;

@Service
public class CurrencyBizServiceImpl extends BaseBizServiceImpl<CurrencyVO>{
	
	/**
	 * 获取货币对象
	 * 
	 * @return
	 */
	public CurrencyVO getCurrency(Long id){
		// 目前货币类型只支持RMB一种，先不从表中取，直接做一个出来
		CurrencyVO currency = new CurrencyVO();
		currency.setId(1L);
		currency.setCode("RMB");
		currency.setName("人民币");
		currency.setSymbol("￥");
		return currency;
	}
	
	/**
	 * 获取货币对象
	 * 
	 * @return
	 */
	public List<CurrencyVO> getCurrencyList(){
		// 目前货币类型只支持RMB一种，先不从表中取，直接做一个出来
		CurrencyVO currency = new CurrencyVO();
		currency.setId(1L);
		currency.setCode("RMB");
		currency.setName("人民币");
		currency.setSymbol("￥");
		List<CurrencyVO> currencyVOs = new ArrayList<CurrencyVO>();
		currencyVOs.add(currency);
		return currencyVOs;
	}
	
}



